package com.jerry.errors;

import com.jerry.interfaces.IResponse;

public enum EnumException implements IResponse {
    META_FILE_NOT_FOUND(1004,"文件元数据不存在"),
    CHUNK_FILE_NOT_UPLOADED(1003,"分片文件未上传"),
    NO_CHUNK_META_AVAILABLE(1002,"文件不完整")
    ;
    private final int code;
    private final String message;

    EnumException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return message;
    }
}
